package com.yzs.controller.admin;

import com.yzs.common.bean.R;
import com.yzs.service.IDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/dashboard")
public class DashboardController {
    @Autowired
    IDashboardService ds;
    @RequestMapping("/getPanelData")
    public R getPanelData(@RequestParam String token){
        return ds.getPanelData(token);
    }

    @RequestMapping("/getChartData")
    public R getChartData(){
        return ds.getChartData();
    }
}
